URL: http://www.nomedoseusite.com.br/api_ds_orders.php?oID=ORDERNUMBER&action=orders_id
Header Parameter | Format |
Token | base64_encode() |
Secret | base64_encode() |
base64_encode() |
Parameter | Format | Description |
oID | GET |
Number of the Order ID |
PHP Sample
// sample list orders id
$add_query_order = '';
if ($_GET['oID'] != '') {
$add_query_order .= '&oID='.$_GET['oID'];
}
$url = $domain_url . '/api_ds_orders.php?action=orders_id'.$add_query_order;
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Content-Type: application/json',
"Cache-Control: no-cache",
'Token: ' . base64_encode($token),
'Secret: ' . base64_encode($secret),
'E-mail: ' . base64_encode($email),
'Content-Length: ' . strlen($data_string))
); $result = curl_exec($ch);
curl_close($ch);
print_r($result);
// sample list orders id eof
Return Error:
code
oID
message
Return Success:
oID
date_purchased
currency
orders_status
last_modified
total
total_shipping
shipping_method
customers_rg
customers_cpf
customers_name
customers_street_address
customers_number
customers_completion
customers_suburb
customers_city
customers_state
customers_country
customers_postcode
customers_cnpj
customers_ie
customers_company
customers_telephone
customers_telephone_commercial
customers_telephone_mobile
customers_skype
delivery_rg
delivery_cpf
delivery_name
delivery_street_address
delivery_number
delivery_completion
delivery_suburb
delivery_city
delivery_state
delivery_country
delivery_postcode
delivery_cnpj
delivery_ie
delivery_company
quantity_discount
discount_coupon
custom
products->qty
products->name
products->final_price
products->attributes->option
products->attributes->value
products->attributes->price_prefix
products->attributes->price